package com.ylc.springdemo.spring4.spring4aop;

import com.ylc.springdemo.spring4.spring4aop.aspect.ControllerAnnotation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author yuanlichao
 * @Date 20-3-30 030 19:45
 **/
@Controller
@RequestMapping("/index")
public class IndexController {

    /**
     * 进入首页
     * @return
     */
    @ControllerAnnotation
    @RequestMapping("/page")
    public String page(){
        System.out.println("请求到了");
        return "page";
    }
}
